/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.ex;

import java.util.Random;

/**
 * <p>Project: jse2302 - Ex2
 * <p>Powered by webrx On 2023-06-15 11:54:11
 * <p>Created by IntelliJ IDEA
 *
 * @author  webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Ex2 {

    public static void main(String[] args) {
        User u1 = User.getInstance();
        User u2 = User.getInstance();
        User u3 = User.getInstance();
        User u4 = User.getInstance();
        User u5 = User.getInstance();

        System.out.println(u1 == u5);

        String s1 = new String("ok");
        String s2 = new String("ok");

        System.out.println(s1 == s2);
    }


    public static void abc(String[] args) {
        long nn = 2424234234234234234L;

        long n = 10;

        System.out.println((int) 12.28);
        System.out.println((int) 12.88);
        Random rand = new Random();
        for (int i = 0; i < 10; i++) {
            System.out.println(rand.nextInt(1, 101));
        }
    }
}
